package com.example.provider.mapper;


import com.guo.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> getOne();


    User getUserByName_Pwd(@Param("name") String name, @Param("pwd") String password);

    void addUser(User user);

    Root getRoot(@Param("name") String name);

    List<Staff> getByPage(@Param("name") String name, @Param("page") Page page);

    Department getDept(@Param("name") String name);

    Salary getSalary(@Param("name") String name);

    void addStaff(@Param("staff") Staff staff);

    void updateStaff(@Param("staff") Staff staff);

    void deleteStaff(@Param("id") Integer id);
}
